package com.clock.shop.mapper;

import com.clock.shop.domain.ShopMember;

import java.util.List;


/**
 * 会员Mapper接口
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
public interface ShopMemberMapper 
{
    //查询会员数量
    public Long selectMemberNum(Long shopId);
    /**
     * 查询会员
     * 
     * @param memberId 会员主键
     * @return 会员
     */
    public ShopMember selectShopMemberByMemberId(Long memberId);

    /**
     * 查询会员列表
     * 
     * @param shopMember 会员
     * @return 会员集合
     */
    public List<ShopMember> selectShopMemberList(ShopMember shopMember);

    /**
     * 新增会员
     * 
     * @param shopMember 会员
     * @return 结果
     */
    public int insertShopMember(ShopMember shopMember);

    /**
     * 修改会员
     * 
     * @param shopMember 会员
     * @return 结果
     */
    public int updateShopMember(ShopMember shopMember);

    /**
     * 删除会员
     * 
     * @param memberId 会员主键
     * @return 结果
     */
    public int deleteShopMemberByMemberId(Long memberId);

    /**
     * 批量删除会员
     * 
     * @param memberIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShopMemberByMemberIds(Long[] memberIds);
}
